home *** CD-ROM | disk | FTP | other *** search
/ SGI Freeware 1999 August / SGI Freeware 1999 August.iso / dist / fw_xemacs.idb / usr / freeware / lib / xemacs-20.4 / info / message.info.z / message.info
Encoding:
GNU Info File  |  1998-05-21  |  41.0 KB  |  1,143 lines

  1. This is Info file ../info/message.info, produced by Makeinfo version
  2. 1.68 from the input file message.texi.
  3.  
  4.    This file documents Message, the Emacs message composition mode.
  5.  
  6.    Copyright (C) 1996 Free Software Foundation, Inc.
  7.  
  8.    Permission is granted to make and distribute verbatim copies of this
  9. manual provided the copyright notice and this permission notice are
  10. preserved on all copies.
  11.  
  12.    Permission is granted to copy and distribute modified versions of
  13. this manual under the conditions for verbatim copying, provided also
  14. that the entire resulting derived work is distributed under the terms
  15. of a permission notice identical to this one.
  16.  
  17.    Permission is granted to copy and distribute translations of this
  18. manual into another language, under the above conditions for modified
  19. versions.
  20.  
  21. 
  22. File: message.info,  Node: Top,  Next: Interface,  Up: (dir)
  23.  
  24. Message
  25. *******
  26.  
  27.    All message composition (both mail and news) takes place in Message
  28. mode buffers.
  29.  
  30. * Menu:
  31.  
  32. * Interface::         Setting up message buffers.
  33. * Commands::          Commands you can execute in message mode buffers.
  34. * Variables::         Customizing the message buffers.
  35. * Compatibility::     Making Message backwards compatible.
  36. * Index::             Variable, function and concept index.
  37. * Key Index::         List of Message mode keys.
  38.  
  39.    This manual corresponds to Message 5.4.66.  Message is distributed
  40. with the Gnus distribution bearing the same version number as this
  41. manual has.
  42.  
  43. 
  44. File: message.info,  Node: Interface,  Next: Commands,  Prev: Top,  Up: Top
  45.  
  46. Interface
  47. *********
  48.  
  49.    When a program (or a person) wants to respond to a message - reply,
  50. follow up, forward, cancel - the program (or person) should just put
  51. point in the buffer where the message is and call the required command.
  52. `Message' will then pop up a new `message' mode buffer with appropriate
  53. headers filled out, and the user can edit the message before sending it.
  54.  
  55. * Menu:
  56.  
  57. * New Mail Message::     Editing a brand new mail message.
  58. * New News Message::     Editing a brand new news message.
  59. * Reply::                Replying via mail.
  60. * Wide Reply::           Responding to all people via mail.
  61. * Followup::             Following up via news.
  62. * Canceling News::       Canceling a news article.
  63. * Superseding::          Superseding a message.
  64. * Forwarding::           Forwarding a message via news or mail.
  65. * Resending::            Resending a mail message.
  66. * Bouncing::             Bouncing a mail message.
  67.  
  68. 
  69. File: message.info,  Node: New Mail Message,  Next: New News Message,  Up: Interface
  70.  
  71. New Mail Message
  72. ================
  73.  
  74.    The `message-mail' command pops up a new message buffer.
  75.  
  76.    Two optional parameters are accepted: The first will be used as the
  77. `To' header and the second as the `Subject' header.  If these aren't
  78. present, those two headers will be empty.
  79.  
  80. 
  81. File: message.info,  Node: New News Message,  Next: Reply,  Prev: New Mail Message,  Up: Interface
  82.  
  83. New News Message
  84. ================
  85.  
  86.    The `message-news' command pops up a new message buffer.
  87.  
  88.    This function accepts two optional parameters.  The first will be
  89. used as the `Newsgroups' header and the second as the `Subject' header.
  90. If these aren't present, those two headers will be empty.
  91.  
  92. 
  93. File: message.info,  Node: Reply,  Next: Wide Reply,  Prev: New News Message,  Up: Interface
  94.  
  95. Reply
  96. =====
  97.  
  98.    The `message-reply' function pops up a message buffer that's a reply
  99. to the message in the current buffer.
  100.  
  101.    Message uses the normal methods to determine where replies are to go,
  102. but you can change the behavior to suit your needs by fiddling with the
  103. `message-reply-to-function' variable.
  104.  
  105.    If you want the replies to go to the `Sender' instead of the `From',
  106. you could do something like this:
  107.  
  108.      (setq message-reply-to-function
  109.            (lambda ()
  110.             (cond ((equal (mail-fetch-field "from") "somebody")
  111.                     (mail-fetch-field "sender"))
  112.                   (t
  113.                    nil))))
  114.  
  115.    This function will be called narrowed to the head of the article
  116. that is being replied to.
  117.  
  118.    As you can see, this function should return a string if it has an
  119. opinion as to what the To header should be.  If it does not, it should
  120. just return `nil', and the normal methods for determining the To header
  121. will be used.
  122.  
  123.    This function can also return a list.  In that case, each list
  124. element should be a cons, where the car should be the name of an header
  125. (eg. `Cc') and the cdr should be the header value (eg.
  126. `larsi@ifi.uio.no').  All these headers will be inserted into the head
  127. of the outgoing mail.
  128.  
  129. 
  130. File: message.info,  Node: Wide Reply,  Next: Followup,  Prev: Reply,  Up: Interface
  131.  
  132. Wide Reply
  133. ==========
  134.  
  135.    The `message-wide-reply' pops up a message buffer that's a wide
  136. reply to the message in the current buffer.  A "wide reply" is a reply
  137. that goes out to all people listed in the `To', `From' (or `Reply-to')
  138. and `Cc' headers.
  139.  
  140.    Message uses the normal methods to determine where wide replies are
  141. to go, but you can change the behavior to suit your needs by fiddling
  142. with the `message-wide-reply-to-function'.  It is used in the same way
  143. as `message-reply-to-function' (*note Reply::.).
  144.  
  145.    Addresses that match the `rmail-dont-reply-to-names' regular
  146. expression will be removed from the `Cc' header.
  147.  
  148. 
  149. File: message.info,  Node: Followup,  Next: Canceling News,  Prev: Wide Reply,  Up: Interface
  150.  
  151. Followup
  152. ========
  153.  
  154.    The `message-followup' command pops up a message buffer that's a
  155. followup to the message in the current buffer.
  156.  
  157.    Message uses the normal methods to determine where followups are to
  158. go, but you can change the behavior to suit your needs by fiddling with
  159. the `message-followup-to-function'.  It is used in the same way as
  160. `message-reply-to-function' (*note Reply::.).
  161.  
  162.    The `message-use-followup-to' variable says what to do about
  163. `Followup-To' headers.  If it is `use', always use the value.  If it is
  164. `ask' (which is the default), ask whether to use the value.  If it is
  165. `t', use the value unless it is `poster'.  If it is `nil', don't use
  166. the value.
  167.  
  168. 
  169. File: message.info,  Node: Canceling News,  Next: Superseding,  Prev: Followup,  Up: Interface
  170.  
  171. Canceling News
  172. ==============
  173.  
  174.    The `message-cancel-news' command cancels the article in the current
  175. buffer.
  176.  
  177. 
  178. File: message.info,  Node: Superseding,  Next: Forwarding,  Prev: Canceling News,  Up: Interface
  179.  
  180. Superseding
  181. ===========
  182.  
  183.    The `message-supersede' command pops up a message buffer that will
  184. supersede the message in the current buffer.
  185.  
  186.    Headers matching the `message-ignored-supersedes-headers' are
  187. removed before popping up the new message buffer.  The default is
  188. `^Path:\\|^Date\\|^NNTP-Posting-Host:\\|^Xref:\\|^Lines:\\|
  189. ^Received:\\|^X-From-Line:\\|Return-Path:'.
  190.  
  191. 
  192. File: message.info,  Node: Forwarding,  Next: Resending,  Prev: Superseding,  Up: Interface
  193.  
  194. Forwarding
  195. ==========
  196.  
  197.    The `message-forward' command pops up a message buffer to forward
  198. the message in the current buffer.  If given a prefix, forward using
  199. news.
  200.  
  201. `message-forward-start-separator'
  202.      Delimiter inserted before forwarded messages.  The default is
  203.      `------- Start of forwarded message -------\n'.
  204.  
  205. `message-forward-end-separator'
  206.      Delimiter inserted after forwarded messages.  The default is
  207.      `------- End of forwarded message -------\n'.
  208.  
  209. `message-signature-before-forwarded-message'
  210.      If this variable is `t', which it is by default, your personal
  211.      signature will be inserted before the forwarded message.  If not,
  212.      the forwarded message will be inserted first in the new mail.
  213.  
  214. `message-included-forward-headers'
  215.      Regexp matching header lines to be included in forwarded messages.
  216.  
  217. 
  218. File: message.info,  Node: Resending,  Next: Bouncing,  Prev: Forwarding,  Up: Interface
  219.  
  220. Resending
  221. =========
  222.  
  223.    The `message-resend' command will prompt the user for an address and
  224. resend the message in the current buffer to that address.
  225.  
  226.    Headers that match the `message-ignored-resent-headers' regexp will
  227. be removed before sending the message.  The default is
  228. `^Return-receipt'.
  229.  
  230. 
  231. File: message.info,  Node: Bouncing,  Prev: Resending,  Up: Interface
  232.  
  233. Bouncing
  234. ========
  235.  
  236.    The `message-bounce' command will, if the current buffer contains a
  237. bounced mail message, pop up a message buffer stripped of the bounce
  238. information.  A "bounced message" is typically a mail you've sent out
  239. that has been returned by some `mailer-daemon' as undeliverable.
  240.  
  241.    Headers that match the `message-ignored-bounced-headers' regexp will
  242. be removed before popping up the buffer.  The default is `^Received:'.
  243.  
  244. 
  245. File: message.info,  Node: Commands,  Next: Variables,  Prev: Interface,  Up: Top
  246.  
  247. Commands
  248. ********
  249.  
  250. * Menu:
  251.  
  252. * Header Commands::     Commands for moving to headers.
  253. * Movement::            Moving around in message buffers.
  254. * Insertion::           Inserting things into message buffers.
  255. * Various Commands::    Various things.
  256. * Sending::             Actually sending the message.
  257. * Mail Aliases::        How to use mail aliases.
  258.  
  259. 
  260. File: message.info,  Node: Header Commands,  Next: Movement,  Up: Commands
  261.  
  262. Header Commands
  263. ===============
  264.  
  265.    All these commands move to the header in question.  If it doesn't
  266. exist, it will be inserted.
  267.  
  268. `C-c ?'
  269.      Describe the message mode.
  270.  
  271. `C-c C-f C-t'
  272.      Go to the `To' header (`message-goto-to').
  273.  
  274. `C-c C-f C-b'
  275.      Go to the `Bcc' header (`message-goto-bcc').
  276.  
  277. `C-c C-f C-f'
  278.      Go to the `Fcc' header (`message-goto-fcc').
  279.  
  280. `C-c C-f C-c'
  281.      Go to the `Cc' header (`message-goto-cc').
  282.  
  283. `C-c C-f C-s'
  284.      Go to the `Subject' header (`message-goto-subject').
  285.  
  286. `C-c C-f C-r'
  287.      Go to the `Reply-To' header (`message-goto-reply-to').
  288.  
  289. `C-c C-f C-n'
  290.      Go to the `Newsgroups' header (`message-goto-newsgroups').
  291.  
  292. `C-c C-f C-d'
  293.      Go to the `Distribution' header (`message-goto-distribution').
  294.  
  295. `C-c C-f C-o'
  296.      Go to the `Followup-To' header (`message-goto-followup-to').
  297.  
  298. `C-c C-f C-k'
  299.      Go to the `Keywords' header (`message-goto-keywords').
  300.  
  301. `C-c C-f C-u'
  302.      Go to the `Summary' header (`message-goto-summary').
  303.  
  304. 
  305. File: message.info,  Node: Movement,  Next: Insertion,  Prev: Header Commands,  Up: Commands
  306.  
  307. Movement
  308. ========
  309.  
  310. `C-c C-b'
  311.      Move to the beginning of the body of the message
  312.      (`message-goto-body').
  313.  
  314. `C-c C-i'
  315.      Move to the signature of the message (`message-goto-signature').
  316.  
  317. 
  318. File: message.info,  Node: Insertion,  Next: Various Commands,  Prev: Movement,  Up: Commands
  319.  
  320. Insertion
  321. =========
  322.  
  323. `C-c C-y'
  324.      Yank the message that's being replied to into the message buffer
  325.      (`message-yank-original').
  326.  
  327. `C-c C-q'
  328.      Fill the yanked message (`message-fill-yanked-message').
  329.  
  330. `C-c C-w'
  331.      Insert a signature at the end of the buffer
  332.      (`message-insert-signature').
  333.  
  334. `message-ignored-cited-headers'
  335.      All headers that match this regexp will be removed from yanked
  336.      messages.  The default is `.', which means that all headers will be
  337.      removed.
  338.  
  339. `message-citation-line-function'
  340.      Function called to insert the citation line.  The default is
  341.      `message-insert-citation-line'.
  342.  
  343. `message-yank-prefix'
  344.      When you are replying to or following up an article, you normally
  345.      want to quote the person you are answering.  Inserting quoted text
  346.      is done by "yanking", and each quoted line you yank will have
  347.      `message-yank-prefix' prepended to it.  The default is `> '.  If
  348.      it is `nil', just indent the message.
  349.  
  350. `message-indentation-spaces'
  351.      Number of spaces to indent yanked messages.
  352.  
  353. `message-cite-function'
  354.      Function for citing an original message.  The default is
  355.      `message-cite-original'.  You can also set it to
  356.      `sc-cite-original' to use Supercite.
  357.  
  358. `message-indent-citation-function'
  359.      Function for modifying a citation just inserted in the mail buffer.
  360.      This can also be a list of functions.  Each function can find the
  361.      citation between `(point)' and `(mark t)'.  And each function
  362.      should leave point and mark around the citation text as modified.
  363.  
  364. `message-signature'
  365.      String to be inserted at the end of the message buffer.  If `t'
  366.      (which is the default), the `message-signature-file' file will be
  367.      inserted instead.  If a function, the result from the function
  368.      will be used instead.  If a form, the result from the form will be
  369.      used instead.  If this variable is `nil', no signature will be
  370.      inserted at all.
  371.  
  372. `message-signature-file'
  373.      File containing the signature to be inserted at the end of the
  374.      buffer.  The default is `~/.signature'.
  375.  
  376.    Note that RFC1036 says that a signature should be preceded by the
  377. three characters `-- ' on a line by themselves.  This is to make it
  378. easier for the recipient to automatically recognize and process the
  379. signature.  So don't remove those characters, even though you might feel
  380. that they ruin your beautiful design, like, totally.
  381.  
  382.    Also note that no signature should be more than four lines long.
  383. Including ASCII graphics is an efficient way to get everybody to believe
  384. that you are silly and have nothing important to say.
  385.  
  386. 
  387. File: message.info,  Node: Various Commands,  Next: Sending,  Prev: Insertion,  Up: Commands
  388.  
  389. Various Commands
  390. ================
  391.  
  392. `C-c C-r'
  393.      Caesar rotate (aka. rot13) the current message
  394.      (`message-caesar-buffer-body').  If narrowing is in effect, just
  395.      rotate the visible portion of the buffer.  A numerical prefix says
  396.      how many places to rotate the text.  The default is 13.
  397.  
  398. `C-c C-e'
  399.      Elide the text between point and mark (`message-elide-region').
  400.      The text is killed and an ellipsis (`[...]') will be inserted in
  401.      its place.
  402.  
  403. `C-c C-t'
  404.      Insert a `To' header that contains the `Reply-To' or `From' header
  405.      of the message you're following up (`message-insert-to').
  406.  
  407. `C-c C-n'
  408.      Insert a `Newsgroups' header that reflects the `Followup-To' or
  409.      `Newsgroups' header of the article you're replying to
  410.      (`message-insert-newsgroups').
  411.  
  412. `C-c M-r'
  413.      Rename the buffer (`message-rename-buffer').  If given a prefix,
  414.      prompt for a new buffer name.
  415.  
  416. 
  417. File: message.info,  Node: Sending,  Next: Mail Aliases,  Prev: Various Commands,  Up: Commands
  418.  
  419. Sending
  420. =======
  421.  
  422. `C-c C-c'
  423.      Send the message and bury the current buffer
  424.      (`message-send-and-exit').
  425.  
  426. `C-c C-s'
  427.      Send the message (`message-send').
  428.  
  429. `C-c C-d'
  430.      Bury the message buffer and exit (`message-dont-send').
  431.  
  432. `C-c C-k'
  433.      Kill the message buffer and exit (`message-kill-buffer').
  434.  
  435. 
  436. File: message.info,  Node: Mail Aliases,  Prev: Sending,  Up: Commands
  437.  
  438. Mail Aliases
  439. ============
  440.  
  441.    The `message-mail-alias-type' variable controls what type of mail
  442. alias expansion to use.  Currently only one form is supported--Message
  443. uses `mailabbrev' to handle mail aliases.  If this variable is `nil',
  444. no mail alias expansion will be performed.
  445.  
  446.    `mailabbrev' works by parsing the `/etc/mailrc' and `~/.mailrc'
  447. files.  These files look like:
  448.  
  449.      alias lmi "Lars Magne Ingebrigtsen <larsi@ifi.uio.no>"
  450.      alias ding "ding@ifi.uio.no (ding mailing list)"
  451.  
  452.    After adding lines like this to your `~/.mailrc' file, you should be
  453. able to just write `lmi' in the `To' or `Cc' (and so on) headers and
  454. press `SPC' to expand the alias.
  455.  
  456.    No expansion will be performed upon sending of the message--all
  457. expansions have to be done explicitly.
  458.  
  459. 
  460. File: message.info,  Node: Variables,  Next: Compatibility,  Prev: Commands,  Up: Top
  461.  
  462. Variables
  463. *********
  464.  
  465. * Menu:
  466.  
  467. * Message Headers::             General message header stuff.
  468. * Mail Headers::                Customizing mail headers.
  469. * Mail Variables::              Other mail variables.
  470. * News Headers::                Customizing news headers.
  471. * News Variables::              Other news variables.
  472. * Various Message Variables::   Other message variables.
  473. * Sending Variables::           Variables for sending.
  474. * Message Buffers::             How Message names its buffers.
  475. * Message Actions::             Actions to be performed when exiting.
  476.  
  477. 
  478. File: message.info,  Node: Message Headers,  Next: Mail Headers,  Up: Variables
  479.  
  480. Message Headers
  481. ===============
  482.  
  483.    Message is quite aggressive on the message generation front.  It has
  484. to be - it's a combined news and mail agent.  To be able to send
  485. combined messages, it has to generate all headers itself to ensure that
  486. mail and news copies of messages look sufficiently similar.
  487.  
  488. `message-generate-headers-first'
  489.      If non-`nil', generate all headers before starting to compose the
  490.      message.
  491.  
  492. `message-from-style'
  493.      Specifies how `From' headers should look.  There are four legal
  494.      values:
  495.  
  496.     `nil'
  497.           Just the address - `king@grassland.com'.
  498.  
  499.     `parens'
  500.           `king@grassland.com (Elvis Parsley)'.
  501.  
  502.     `angles'
  503.           `Elvis Parsley <king@grassland.com>'.
  504.  
  505.     `default'
  506.           Look like `angles' if that doesn't require quoting, and
  507.           `parens' if it does.  If even `parens' requires quoting, use
  508.           `angles' anyway.
  509.  
  510. `message-deletable-headers'
  511.      Headers in this list that were previously generated by Message
  512.      will be deleted before posting.  Let's say you post an article.
  513.      Then you decide to post it again to some other group, you naughty
  514.      boy, so you jump back to the `*post-buf*' buffer, edit the
  515.      `Newsgroups' line, and ship it off again.  By default, this
  516.      variable makes sure that the old generated `Message-ID' is
  517.      deleted, and a new one generated.  If this isn't done, the entire
  518.      empire would probably crumble, anarchy would prevail, and cats
  519.      would start walking on two legs and rule the world.  Allegedly.
  520.  
  521. `message-default-headers'
  522.      This string is inserted at the end of the headers in all message
  523.      buffers.
  524.  
  525. 
  526. File: message.info,  Node: Mail Headers,  Next: Mail Variables,  Prev: Message Headers,  Up: Variables
  527.  
  528. Mail Headers
  529. ============
  530.  
  531. `message-required-mail-headers'
  532.      *Note News Headers::, for the syntax of this variable.  It is
  533.      `(From Date Subject (optional . In-Reply-To) Message-ID Lines
  534.      (optional . X-Mailer))' by default.
  535.  
  536. `message-ignored-mail-headers'
  537.      Regexp of headers to be removed before mailing.  The default is
  538.      `^Gcc:\\|^Fcc:'.
  539.  
  540. `message-default-mail-headers'
  541.      This string is inserted at the end of the headers in all message
  542.      buffers that are initialized as mail.
  543.  
  544. 
  545. File: message.info,  Node: Mail Variables,  Next: News Headers,  Prev: Mail Headers,  Up: Variables
  546.  
  547. Mail Variables
  548. ==============
  549.  
  550. `message-send-mail-function'
  551.      Function used to send the current buffer as mail.  The default is
  552.      `message-send-mail-with-sendmail'.   If you prefer using MH
  553.      instead, set this variable to `message-send-mail-with-mh'.
  554.  
  555. `message-mh-deletable-headers'
  556.      Most versions of MH doesn't like being fed messages that contain
  557.      the headers in this variable.  If this variable is non-`nil'
  558.      (which is the default), these headers will be removed before
  559.      mailing.  Set it to `nil' if your MH can handle these headers.
  560.  
  561. 
  562. File: message.info,  Node: News Headers,  Next: News Variables,  Prev: Mail Variables,  Up: Variables
  563.  
  564. News Headers
  565. ============
  566.  
  567.    `message-required-news-headers' a list of header symbols.  These
  568. headers will either be automatically generated, or, if that's
  569. impossible, they will be prompted for.  The following symbols are legal:
  570.  
  571. `From'
  572.      This required header will be filled out with the result of the
  573.      `message-make-from' function, which depends on the
  574.      `message-from-style', `user-full-name', `user-mail-address'
  575.      variables.
  576.  
  577. `Subject'
  578.      This required header will be prompted for if not present already.
  579.  
  580. `Newsgroups'
  581.      This required header says which newsgroups the article is to be
  582.      posted to.  If it isn't present already, it will be prompted for.
  583.  
  584. `Organization'
  585.      This optional header will be filled out depending on the
  586.      `message-user-organization' variable.
  587.      `message-user-organization-file' will be used if this variable is
  588.      `t'.  This variable can also be a string (in which case this string
  589.      will be used), or it can be a function (which will be called with
  590.      no parameters and should return a string to be used).
  591.  
  592. `Lines'
  593.      This optional header will be computed by Message.
  594.  
  595. `Message-ID'
  596.      This required header will be generated by Message.  A unique ID
  597.      will be created based on the date, time, user name and system
  598.      name.  Message will use `mail-host-address' as the fully qualified
  599.      domain name (FQDN) of the machine if that variable is defined.  If
  600.      not, it will use `system-name', which doesn't report a FQDN on
  601.      some machines - notably Suns.
  602.  
  603. `X-Newsreader'
  604.      This optional header will be filled out according to the
  605.      `message-newsreader' local variable.
  606.  
  607. `X-Mailer'
  608.      This optional header will be filled out according to the
  609.      `message-mailer' local variable, unless there already is an
  610.      `X-Newsreader' header present.
  611.  
  612. `In-Reply-To'
  613.      This optional header is filled out using the `Date' and `From'
  614.      header of the article being replied to.
  615.  
  616. `Expires'
  617.      This extremely optional header will be inserted according to the
  618.      `message-expires' variable.  It is highly deprecated and shouldn't
  619.      be used unless you know what you're doing.
  620.  
  621. `Distribution'
  622.      This optional header is filled out according to the
  623.      `message-distribution-function' variable.  It is a deprecated and
  624.      much misunderstood header.
  625.  
  626. `Path'
  627.      This extremely optional header should probably never be used.
  628.      However, some *very* old servers require that this header is
  629.      present.  `message-user-path' further controls how this `Path'
  630.      header is to look.  If it is `nil', use the server name as the
  631.      leaf node.  If it is a string, use the string.  If it is neither a
  632.      string nor `nil', use the user name only.  However, it is highly
  633.      unlikely that you should need to fiddle with this variable at all.
  634.  
  635.    In addition, you can enter conses into this list.  The car of this
  636. cons should be a symbol.  This symbol's name is the name of the header,
  637. and the cdr can either be a string to be entered verbatim as the value
  638. of this header, or it can be a function to be called.  This function
  639. should return a string to be inserted.  For instance, if you want to
  640. insert `Mime-Version: 1.0', you should enter `(Mime-Version . "1.0")'
  641. into the list.  If you want to insert a funny quote, you could enter
  642. something like `(X-Yow . yow)' into the list.  The function `yow' will
  643. then be called without any arguments.
  644.  
  645.    If the list contains a cons where the car of the cons is `optional',
  646. the cdr of this cons will only be inserted if it is non-`nil'.
  647.  
  648.    Other variables for customizing outgoing news articles:
  649.  
  650. `message-syntax-checks'
  651.      If non-`nil', Message will attempt to check the legality of the
  652.      headers, as well as some other stuff, before posting.  You can
  653.      control the granularity of the check by adding or removing
  654.      elements from this list.  Legal elements are:
  655.  
  656.     `subject-cmsg'
  657.           Check the subject for commands.
  658.  
  659.     `sender'
  660.           Insert a new `Sender' header if the `From' header looks odd.
  661.  
  662.     `multiple-headers'
  663.           Check for the existence of multiple equal headers.
  664.  
  665.     `sendsys'
  666.           Check for the existence of version and sendsys commands.
  667.  
  668.     `message-id'
  669.           Check whether the `Message-ID' looks ok.
  670.  
  671.     `from'
  672.           Check whether the `From' header seems nice.
  673.  
  674.     `long-lines'
  675.           Check for too long lines.
  676.  
  677.     `control-chars'
  678.           Check for illegal characters.
  679.  
  680.     `size'
  681.           Check for excessive size.
  682.  
  683.     `new-text'
  684.           Check whether there is any new text in the messages.
  685.  
  686.     `signature'
  687.           Check the length of the signature.
  688.  
  689.     `approved'
  690.           Check whether the article has an `Approved' header, which is
  691.           something only moderators should include.
  692.  
  693.     `empty'
  694.           Check whether the article is empty.
  695.  
  696.     `empty-headers'
  697.           Check whether any of the headers are empty.
  698.  
  699.     `existing-newsgroups'
  700.           Check whether the newsgroups mentioned in the `Newsgroups' and
  701.           `Followup-To' headers exist.
  702.  
  703.     `valid-newsgroups'
  704.           Check whether the `Newsgroups' and `Followup-to' headers are
  705.           valid syntactically.
  706.  
  707.     `repeated-newsgroups'
  708.           Check whether the `Newsgroups' and `Followup-to' headers
  709.           contains repeated group names.
  710.  
  711.     `shorten-followup-to'
  712.           Check whether to add a `Followup-to' header to shorten the
  713.           number of groups to post to.
  714.  
  715.      All these conditions are checked by default.
  716.  
  717. `message-ignored-news-headers'
  718.      Regexp of headers to be removed before posting.  The default is
  719.      `^NNTP-Posting-Host:\\|^Xref:\\|^Bcc:\\|^Gcc:\\|^Fcc:'.
  720.  
  721. `message-default-news-headers'
  722.      This string is inserted at the end of the headers in all message
  723.      buffers that are initialized as news.
  724.  
  725. 
  726. File: message.info,  Node: News Variables,  Next: Various Message Variables,  Prev: News Headers,  Up: Variables
  727.  
  728. News Variables
  729. ==============
  730.  
  731. `message-send-news-function'
  732.      Function used to send the current buffer as news.  The default is
  733.      `message-send-news'.
  734.  
  735. `message-post-method'
  736.      Method used for posting a prepared news message.
  737.  
  738. 
  739. File: message.info,  Node: Various Message Variables,  Next: Sending Variables,  Prev: News Variables,  Up: Variables
  740.  
  741. Various Message Variables
  742. =========================
  743.  
  744. `message-signature-separator'
  745.      Regexp matching the signature separator.  It is `^-- *$' by
  746.      default.
  747.  
  748. `mail-header-separator'
  749.      String used to separate the headers from the body.  It is `--text
  750.      follows this line--' by default.
  751.  
  752. `message-directory'
  753.      Directory used by many mailey things.  The default is `~/Mail/'.
  754.  
  755. `message-autosave-directory'
  756.      Directory where message buffers will be autosaved to.
  757.  
  758. `message-signature-setup-hook'
  759.      Hook run when initializing the message buffer.  It is run after the
  760.      headers have been inserted but before the signature has been
  761.      inserted.
  762.  
  763. `message-setup-hook'
  764.      Hook run as the last thing when the message buffer has been
  765.      initialized, but before yanked text is inserted.
  766.  
  767. `message-header-setup-hook'
  768.      Hook called narrowed to the headers after initializing the headers.
  769.  
  770.      For instance, if you're running Gnus and wish to insert a
  771.      `Mail-Copies-To' header in all your news articles and all messages
  772.      you send to mailing lists, you could do something like the
  773.      following:
  774.  
  775.           (defun my-message-header-setup-hook ()
  776.             (let ((group (or gnus-newsgroup-name "")))
  777.               (when (or (message-fetch-field "newsgroups")
  778.                         (gnus-group-find-parameter group 'to-address)
  779.                         (gnus-group-find-parameter group 'to-list))
  780.                 (insert "Mail-Copies-To: never\n"))))
  781.           
  782.           (add-hook 'message-header-setup-hook 'my-message-header-setup-hook)
  783.  
  784. `message-send-hook'
  785.      Hook run before sending messages.
  786.  
  787.      If you want to add certain headers before sending, you can use the
  788.      `message-add-header' function in this hook.  For instance:
  789.  
  790.           (add-hook 'message-send-hook 'my-message-add-content)
  791.           (defun my-message-add-content ()
  792.             (message-add-header
  793.              "Mime-Version: 1.0"
  794.              "Content-Type: text/plain"
  795.              "Content-Transfer-Encoding: 7bit"))
  796.  
  797.      This function won't add the header if the header is already
  798.      present.
  799.  
  800. `message-send-mail-hook'
  801.      Hook run before sending mail messages.
  802.  
  803. `message-send-news-hook'
  804.      Hook run before sending news messages.
  805.  
  806. `message-sent-hook'
  807.      Hook run after sending messages.
  808.  
  809. `message-mode-syntax-table'
  810.      Syntax table used in message mode buffers.
  811.  
  812. `message-send-method-alist'
  813.      Alist of ways to send outgoing messages.  Each element has the form
  814.  
  815.           (TYPE PREDICATE FUNCTION)
  816.  
  817.     TYPE
  818.           A symbol that names the method.
  819.  
  820.     PREDICATE
  821.           A function called without any parameters to determine whether
  822.           the message is a message of type TYPE.
  823.  
  824.     FUNCTION
  825.           A function to be called if PREDICATE returns non-`nil'.
  826.           FUNCTION is called with one parameter - the prefix.
  827.  
  828.           ((news message-news-p message-send-via-news)
  829.            (mail message-mail-p message-send-via-mail))
  830.  
  831. 
  832. File: message.info,  Node: Sending Variables,  Next: Message Buffers,  Prev: Various Message Variables,  Up: Variables
  833.  
  834. Sending Variables
  835. =================
  836.  
  837. `message-fcc-handler-function'
  838.      A function called to save outgoing articles.  This function will be
  839.      called with the name of the file to store the article in. The
  840.      default function is `rmail-output' which saves in Unix mailbox
  841.      format.
  842.  
  843. `message-courtesy-message'
  844.      When sending combined messages, this string is inserted at the
  845.      start of the mailed copy.  If the string contains the format spec
  846.      `%s', the newsgroups the article has been posted to will be
  847.      inserted there.  If this variable is `nil', no such courtesy
  848.      message will be added.  The default value is `"The following
  849.      message is a courtesy copy of an article\nthat has been posted to
  850.      %s as well.\n\n"'.
  851.  
  852. 
  853. File: message.info,  Node: Message Buffers,  Next: Message Actions,  Prev: Sending Variables,  Up: Variables
  854.  
  855. Message Buffers
  856. ===============
  857.  
  858.    Message will generate new buffers with unique buffer names when you
  859. request a message buffer.  When you send the message, the buffer isn't
  860. normally killed off.  Its name is changed and a certain number of old
  861. message buffers are kept alive.
  862.  
  863. `message-generate-new-buffers'
  864.      If non-`nil', generate new buffers.  The default is `t'.  If this
  865.      is a function, call that function with three parameters: The type,
  866.      the to address and the group name.  (Any of these may be `nil'.)
  867.      The function should return the new buffer name.
  868.  
  869. `message-max-buffers'
  870.      This variable says how many old message buffers to keep.  If there
  871.      are more message buffers than this, the oldest buffer will be
  872.      killed.  The default is 10.  If this variable is `nil', no old
  873.      message buffers will ever be killed.
  874.  
  875. `message-send-rename-function'
  876.      After sending a message, the buffer is renamed from, for instance,
  877.      `*reply to Lars*' to `*sent reply to Lars*'.  If you don't like
  878.      this, set this variable to a function that renames the buffer in a
  879.      manner you like.  If you don't want to rename the buffer at all,
  880.      you can say:
  881.  
  882.           (setq message-send-rename-function 'ignore)
  883.  
  884. `message-kill-buffer-on-exit'
  885.      If non-`nil', kill the buffer immediately on exit.
  886.  
  887. 
  888. File: message.info,  Node: Message Actions,  Prev: Message Buffers,  Up: Variables
  889.  
  890. Message Actions
  891. ===============
  892.  
  893.    When Message is being used from a news/mail reader, the reader is
  894. likely to want to perform some task after the message has been sent.
  895. Perhaps return to the previous window configuration or mark an article
  896. as replied.
  897.  
  898.    The user may exit from the message buffer in various ways.  The most
  899. common is `C-c C-c', which sends the message and exits.  Other
  900. possibilities are `C-c C-s' which just sends the message, `C-c C-d'
  901. which postpones the message editing and buries the message buffer, and
  902. `C-c C-k' which kills the message buffer.  Each of these actions have
  903. lists associated with them that contains actions to be executed:
  904. `message-send-actions', `message-exit-actions',
  905. `message-postpone-actions', and `message-kill-actions'.
  906.  
  907.    Message provides a function to interface with these lists:
  908. `message-add-action'.  The first parameter is the action to be added,
  909. and the rest of the arguments are which lists to add this action to.
  910. Here's an example from Gnus:
  911.  
  912.        (message-add-action
  913.         `(set-window-configuration ,(current-window-configuration))
  914.         'exit 'postpone 'kill)
  915.  
  916.    This restores the Gnus window configuration when the message buffer
  917. is killed, postponed or exited.
  918.  
  919.    An "action" can be either: a normal function, or a list where the
  920. `car' is a function and the `cdr' is the list of arguments, or a form
  921. to be `eval'ed.
  922.  
  923. 
  924. File: message.info,  Node: Compatibility,  Next: Index,  Prev: Variables,  Up: Top
  925.  
  926. Compatibility
  927. *************
  928.  
  929.    Message uses virtually only its own variables--older `mail-'
  930. variables aren't consulted.  To force Message to take those variables
  931. into account, you can put the following in your `.emacs' file:
  932.  
  933.      (require 'messcompat)
  934.  
  935.    This will initialize many Message variables from the values in the
  936. corresponding mail variables.
  937.  
  938. 
  939. File: message.info,  Node: Index,  Next: Key Index,  Prev: Compatibility,  Up: Top
  940.  
  941. Index
  942. *****
  943.  
  944. * Menu:
  945.  
  946. * aliases:                               Mail Aliases.
  947. * approved:                              News Headers.
  948. * compatibility:                         Compatibility.
  949. * Distribution:                          News Headers.
  950. * Expires:                               News Headers.
  951. * From:                                  News Headers.
  952. * Lines:                                 News Headers.
  953. * long lines:                            News Headers.
  954. * mail aliases:                          Mail Aliases.
  955. * mail-header-separator:                 Various Message Variables.
  956. * mail-host-address:                     News Headers.
  957. * message-add-header:                    Various Message Variables.
  958. * message-autosave-directory:            Various Message Variables.
  959. * message-bounce:                        Bouncing.
  960. * message-caesar-buffer-body:            Various Commands.
  961. * message-cancel-news:                   Canceling News.
  962. * message-citation-line-function:        Insertion.
  963. * message-cite-function:                 Insertion.
  964. * message-cite-original:                 Insertion.
  965. * message-courtesy-message:              Sending Variables.
  966. * message-default-headers:               Message Headers.
  967. * message-default-mail-headers:          Mail Headers.
  968. * message-default-news-headers:          News Headers.
  969. * message-deletable-headers:             Message Headers.
  970. * message-directory:                     Various Message Variables.
  971. * message-dont-send:                     Sending.
  972. * message-elide-region:                  Various Commands.
  973. * message-exit-actions:                  Message Actions.
  974. * message-fcc-handler-function:          Sending Variables.
  975. * message-fill-yanked-message:           Insertion.
  976. * message-followup:                      Followup.
  977. * message-followup-to-function:          Followup.
  978. * message-forward:                       Forwarding.
  979. * message-forward-end-separator:         Forwarding.
  980. * message-forward-start-separator:       Forwarding.
  981. * message-from-style:                    Message Headers.
  982. * message-generate-headers-first:        Message Headers.
  983. * message-generate-new-buffers:          Message Buffers.
  984. * message-goto-bcc:                      Header Commands.
  985. * message-goto-body:                     Movement.
  986. * message-goto-cc:                       Header Commands.
  987. * message-goto-distribution:             Header Commands.
  988. * message-goto-fcc:                      Header Commands.
  989. * message-goto-followup-to:              Header Commands.
  990. * message-goto-keywords:                 Header Commands.
  991. * message-goto-newsgroups:               Header Commands.
  992. * message-goto-reply-to:                 Header Commands.
  993. * message-goto-signature:                Movement.
  994. * message-goto-subject:                  Header Commands.
  995. * message-goto-summary:                  Header Commands.
  996. * message-goto-to:                       Header Commands.
  997. * message-header-setup-hook:             Various Message Variables.
  998. * Message-ID:                            News Headers.
  999. * message-ignored-bounced-headers:       Bouncing.
  1000. * message-ignored-cited-headers:         Insertion.
  1001. * message-ignored-mail-headers:          Mail Headers.
  1002. * message-ignored-news-headers:          News Headers.
  1003. * message-ignored-resent-headers:        Resending.
  1004. * message-ignored-supersedes-headers:    Superseding.
  1005. * message-included-forward-headers:      Forwarding.
  1006. * message-indent-citation-function:      Insertion.
  1007. * message-indentation-spaces:            Insertion.
  1008. * message-insert-newsgroups:             Various Commands.
  1009. * message-insert-signature:              Insertion.
  1010. * message-insert-to:                     Various Commands.
  1011. * message-kill-actions:                  Message Actions.
  1012. * message-kill-buffer:                   Sending.
  1013. * message-kill-buffer-on-exit:           Message Buffers.
  1014. * message-mail:                          New Mail Message.
  1015. * message-mail-alias-type:               Mail Aliases.
  1016. * message-max-buffers:                   Message Buffers.
  1017. * message-mh-deletable-headers:          Mail Variables.
  1018. * message-mode-syntax-table:             Various Message Variables.
  1019. * message-news:                          New News Message.
  1020. * message-post-method:                   News Variables.
  1021. * message-postpone-actions:              Message Actions.
  1022. * message-rename-buffer:                 Various Commands.
  1023. * message-reply:                         Reply.
  1024. * message-reply-to-function:             Reply.
  1025. * message-required-mail-headers:         Mail Headers.
  1026. * message-required-news-headers:         News Headers.
  1027. * message-resend:                        Resending.
  1028. * message-send:                          Sending.
  1029. * message-send-actions:                  Message Actions.
  1030. * message-send-and-exit:                 Sending.
  1031. * message-send-hook:                     Various Message Variables.
  1032. * message-send-mail-function:            Mail Variables.
  1033. * message-send-mail-hook:                Various Message Variables.
  1034. * message-send-method-alist:             Various Message Variables.
  1035. * message-send-news-function:            News Variables.
  1036. * message-send-news-hook:                Various Message Variables.
  1037. * message-send-rename-function:          Message Buffers.
  1038. * message-sent-hook:                     Various Message Variables.
  1039. * message-setup-hook:                    Various Message Variables.
  1040. * message-signature:                     Insertion.
  1041. * message-signature-before-forwarded-message: Forwarding.
  1042. * message-signature-file:                Insertion.
  1043. * message-signature-separator:           Various Message Variables.
  1044. * message-signature-setup-hook:          Various Message Variables.
  1045. * message-supersede:                     Superseding.
  1046. * message-syntax-checks:                 News Headers.
  1047. * message-use-followup-to:               Followup.
  1048. * message-wide-reply:                    Wide Reply.
  1049. * message-wide-reply-to-function:        Wide Reply.
  1050. * message-yank-original:                 Insertion.
  1051. * message-yank-prefix:                   Insertion.
  1052. * Mime-Version:                          News Headers.
  1053. * Newsgroups:                            News Headers.
  1054. * organization:                          News Headers.
  1055. * path:                                  News Headers.
  1056. * quoting:                               Insertion.
  1057. * rmail-dont-reply-to-names:             Wide Reply.
  1058. * sc-cite-original:                      Insertion.
  1059. * Sender:                                News Headers.
  1060. * sendsys:                               News Headers.
  1061. * Subject:                               News Headers.
  1062. * Sun:                                   News Headers.
  1063. * Supercite:                             Insertion.
  1064. * system-name:                           News Headers.
  1065. * user-full-name:                        News Headers.
  1066. * user-mail-address:                     News Headers.
  1067. * X-Newsreader:                          News Headers.
  1068. * yanking:                               Insertion.
  1069. * yow:                                   News Headers.
  1070.  
  1071. 
  1072. File: message.info,  Node: Key Index,  Prev: Index,  Up: Top
  1073.  
  1074. Key Index
  1075. *********
  1076.  
  1077. * Menu:
  1078.  
  1079. * C-c ?:                                 Header Commands.
  1080. * C-c C-b:                               Movement.
  1081. * C-c C-c:                               Sending.
  1082. * C-c C-d:                               Sending.
  1083. * C-c C-e:                               Various Commands.
  1084. * C-c C-f C-b:                           Header Commands.
  1085. * C-c C-f C-c:                           Header Commands.
  1086. * C-c C-f C-d:                           Header Commands.
  1087. * C-c C-f C-f:                           Header Commands.
  1088. * C-c C-f C-k:                           Header Commands.
  1089. * C-c C-f C-n:                           Header Commands.
  1090. * C-c C-f C-o:                           Header Commands.
  1091. * C-c C-f C-r:                           Header Commands.
  1092. * C-c C-f C-s:                           Header Commands.
  1093. * C-c C-f C-t:                           Header Commands.
  1094. * C-c C-f C-u:                           Header Commands.
  1095. * C-c C-i:                               Movement.
  1096. * C-c C-k:                               Sending.
  1097. * C-c C-n:                               Various Commands.
  1098. * C-c C-q:                               Insertion.
  1099. * C-c C-r:                               Various Commands.
  1100. * C-c C-s:                               Sending.
  1101. * C-c C-t:                               Various Commands.
  1102. * C-c C-w:                               Insertion.
  1103. * C-c C-y:                               Insertion.
  1104. * C-c M-r:                               Various Commands.
  1105.  
  1106.  
  1107. 
  1108. Tag Table:
  1109. Node: Top803
  1110. Node: Interface1475
  1111. Node: New Mail Message2477
  1112. Node: New News Message2844
  1113. Node: Reply3242
  1114. Node: Wide Reply4583
  1115. Node: Followup5298
  1116. Node: Canceling News6074
  1117. Node: Superseding6284
  1118. Node: Forwarding6761
  1119. Node: Resending7689
  1120. Node: Bouncing8079
  1121. Node: Commands8591
  1122. Node: Header Commands9025
  1123. Node: Movement10070
  1124. Node: Insertion10359
  1125. Node: Various Commands13067
  1126. Node: Sending14067
  1127. Node: Mail Aliases14473
  1128. Node: Variables15324
  1129. Node: Message Headers15975
  1130. Node: Mail Headers17698
  1131. Node: Mail Variables18307
  1132. Node: News Headers18973
  1133. Node: News Variables24897
  1134. Node: Various Message Variables25248
  1135. Node: Sending Variables28332
  1136. Node: Message Buffers29203
  1137. Node: Message Actions30638
  1138. Node: Compatibility32111
  1139. Node: Index32553
  1140. Node: Key Index39653
  1141. 
  1142. End Tag Table
  1143.